package com.mt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mt.pojo.Acl;
import com.mt.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Wang
 * @Description
 * @since 2020-11-12
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    Boolean distributeAcl4Role(@Param("roleId") Integer roleId, @Param("aclIds") List<Integer> aclIds);

    Boolean modifyAcl4Role(@Param("roleId") Integer roleId, @Param("aclIds") List<Integer> aclIds);

    List<Acl> listAclByRole(@Param("roleId") Integer roleId);

    Boolean deleteAclByRole(@Param("roleId") Integer roleId);
}
